package demo1;

/**
 * @Author 12629
 * @Description：
 */
class Base2 {

    public void testA() {
        System.out.println("testA()");
    }
}

class Derived2 extends Base2 {

    public void testA() {
        System.out.println("Derived2::testA()");
    }
    public void testB() {
        System.out.println("testB()");
    }
    public  void testC() {
        this.testA();
        super.testA();
        this.testB();
    }
}
public class Test4 {
    public static void main(String[] args) {
        Derived2 derived2 = new Derived2();
        derived2.testC();
    }
}